package io.gitee.zicai.bus.bus;

import io.gitee.zicai.bus.core.IBusReceiver;
import org.springframework.context.ApplicationEvent;

/**
 * EventReceiveBus
 *
 * @author zicai
 * @since 2021-01-20
 */
public abstract class EventReceiveBus<R extends IBusReceiver, T> extends ApplicationEvent implements IReceiveBus<R, T> {

    protected T receiveData;

    public EventReceiveBus(T receiveData) {
        super(receiveData);
        this.receiveData = receiveData;
    }

    @Override
    public T getReceiveData() {
        return receiveData;
    }
}
